import { Column, Entity, PrimaryGeneratedColumn, Unique } from "typeorm";

@Entity('foods_list')
@Unique(['footname'])
export class Food {
    @Column()
    footname: string
    @PrimaryGeneratedColumn()
    footid: number
    @Column({ type: 'decimal', precision: 10, scale: 2 })
    price: number
    @Column()
    num: number
}
